﻿using Domain.Entity;
using Domain.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.AppService.CFTKAppService
{
    public class CFTKAppService : ICFTKAppService
    {
        private readonly ICFTKRepository cftkRepository;

        public CFTKAppService(ICFTKRepository cftkRepository)
        {
            this.cftkRepository = cftkRepository;
        }

		public Task<bool> AddCFTKAsync(CFTK cFTK)
		{
			return cftkRepository.AddCFTKAsync(cFTK);
		}

		public Task<bool> DeleteCFTKAsync(int id)
		{
			return cftkRepository.DeleteCFTKAsync(id);
		}

		public Task<List<CFTK>> GetCFTKAsyncById(string kid)
		{
			return cftkRepository.GetCFTKAsyncById(kid);
		}

		public Task<List<CFTK>> GetCFTKAsync()
		{
			return cftkRepository.GetCFTKAsync();
		}

		public Task<bool> UpdateCFTKAsync(CFTK cFTK)
		{
			return cftkRepository.UpdateCFTKAsync(cFTK);
		}
	}
}
